package de.slothsoft.wasbinich.core;

import java.util.Locale;

public final class WasBinIch {

    public static final int PICTURE_SIZE = 500;

    public static final String APPLICATION_NAME = "Was Bin Ich?"; //$NON-NLS-1$
    public static final String APPLICATION_URL = "http://wasbinich-game.de"; //$NON-NLS-1$
    public static final String VENDOR_NAME = "Slothsoft"; //$NON-NLS-1$
    public static final String VENDOR_URL = "http://slothsoft.de"; //$NON-NLS-1$
    public static final Locale[] SUPPORTED_LANGUAGES = { Locale.GERMAN, Locale.ENGLISH };

    public static final int GAME_LENGTH_IN_SECONDS = 120;

    public static boolean DEBUG = false;// "TRUE".equals(System.getProperty("debug"));
    public static Version version;

    public static void initVersion(Version version) {
	// if (WasBinIch.version != null)
	// throw new IllegalArgumentException();
	WasBinIch.version = version;
    }

    public static boolean isFreeVersion() {
	return version == Version.FREE || version == Version.LITE;
    }

    public static boolean isFullVersion() {
	return version == Version.FULL;
    }

    public static boolean isInitialized() {
	return version != null;
    }

    public static Version getVersion() {
	return version;
    }

    private WasBinIch() {
	// hide me
    }

    /*
     * 
     */

    public static enum Version {
	FULL, FREE, LITE, APPLET, DESKTOP;
    }

}
